﻿using System;
using BasicallyNot.CodeTransformers.Handlers;
using BasicallyNot.CodeTransformers.Searchers;


namespace BasicallyNot.CodeTransformers
{

	internal class Keyword
	{

		internal IVisualSearcher Searcher { get; set; }
		internal IVisualHandler Handler { get; set; }
		internal string Lower { get; private set; }

		internal Keyword( string value, IVisualSearcher searcher )
		{
			Value = value;
			Searcher = searcher;
		}

		internal Keyword( string value, IVisualSearcher searcher, IVisualHandler handler )
		{
			Value = value;
			Searcher = searcher;
			Handler = handler;
		}



		private string _value;
		internal string Value
		{
			get
			{
				return _value;
			}
			set
			{
				_value = value;
				Lower = _value.ToLower();
			}
		}

	}

}
